<template>
  <div class="info-wrapper">
    <!-- 头部 -->
    <div class="header">
      <router-link to="/mine">
        <div class="back"></div>
      </router-link>
      <div class="center">
        <div class="title">编辑资料</div>
        <div class="txt">
          资料完成度
          <span>80%</span>
        </div>
      </div>
    </div>
    <!-- 头像 -->
    <div class="headerImg">
      <div class="zhezhao"></div>
      <div class="img">
        <img src="/favicon.ico" alt="" />
      </div>
      <div class="title">点击更换头像</div>
    </div>

    <!-- 表单 -->
    <div class="info">
      <div class="item">
        <div class="left">用户名</div>
        <div class="right">
          <div class="title">内裤大叔</div>
          <div class="icon">＞</div>
        </div>
      </div>
      <div class="item">
        <div class="left">简介</div>
        <div class="right">
          <div class="title">一心只想做出好的游戏视频</div>
          <div class="icon">＞</div>
        </div>
      </div>
      <div class="item">
        <div class="left">性别</div>
        <div class="right">
          <div class="title">男</div>
          <div class="icon">＞</div>
        </div>
      </div>
      <div class="item">
        <div class="left">生日</div>
        <div class="right">
          <div class="title">2018-10-01</div>
          <div class="icon">＞</div>
        </div>
      </div>
      <div class="item">
        <div class="left">所在地</div>
        <div class="right">
          <div class="title1">待完善</div>
          <div class="icon">＞</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
.info-wrapper {
  // 表单
  .info {
    margin-top: 30px;
    padding: 20px;
    font-size: 14px;
    .icon {
      color: @font-grey-99;
    }
    .item {
      display: flex;
      justify-content: space-between;
      padding-bottom: 10px;
      border-bottom: 1px solid #f8f8f8;
      font-weight: 700;
      margin-bottom: 20px;
      color: #090909;
      .title1 {
        color: @font-grey-99;
      }
      .right {
        display: flex;
      }
    }
  }
  // 头像
  .headerImg {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    position: relative;
    .title {
      margin-top: 10px;
      font-size: 12px;
      font-weight: 700;
    }
    .zhezhao {
      position: absolute;
      width: 70px;
      height: 70px;
      border-radius: 50%;
      background-color: rgba(0, 0, 0, 0.5);
    }
    .img {
      display: flex;
      width: 70px;
      height: 70px;
      background-color: pink;
      border-radius: 50%;
      img {
        width: 100%;
        border-radius: 50%;
      }
    }
  }

  // 头部 编辑资料
  .header {
    display: flex;
    padding: 0 10px;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f8f8f8;
    margin-bottom: 20px;
    .center {
      display: flex;
      flex-direction: column;
      text-align: center;
      transform: translateX(-25%);
      .txt {
        color: @font-grey-99;
        font-size: 12px;
        span {
          color: @font-red-f8;
        }
      }
      .title {
        font-weight: 700;
      }
    }
    .back {
      width: 40px;
      height: 50px;
      position: relative;
      left: -120px;
    }
    .back::after {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translateY(-50%);
      transform: rotate(0.87turn);
      content: "";
      width: 12px;
      height: 12px;
      border-top: 2px solid black;
      border-left: 2px solid black;
    }
  }
}
</style>